The TRequest Structure
You use theTRequest
structure to specify the data being sent with theOTSndRequest
function and the data being read with theOTRcvRequest
function. You pass a pointer to this structure as a parameter to each of these functions. When sending data you must initialize thebuf
andlen
fields of all theTNetbufs
. When receiving data, you must initialize thebuf
andmaxlen
fields of all theTNetbufs
.The
TRequest
structure is defined by theTRequest
data type.
struct TRequest { TNetbuf data; TNetbuf opt; OTSequence sequence; }; typedef struct TRequest TRequest;
Field Description
data
- A
TNetbuf
structure specifying the location and size of the request data buffer.opt
- A
TNetbuf
structure specifying the location and size of the options buffer.sequence
- A 32-bit value that specifies the transaction ID of the current transaction.